import Vue from 'vue'
import App from './App.vue'
//引入ElementUi组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//引入路由器
import VueRouter from "vue-router";
//关闭VUE生产提示
Vue.config.productionTip = false

import router from "@/router";
import request from "@/components/utils/request";
import requestFile from "@/components/utils/requestFile";

//插入ElementUI插件
Vue.use(ElementUI);
//使用路由器插件
Vue.use(VueRouter);

//把封装的网络请求形成全局的变量
Vue.prototype.$request=request;
Vue.prototype.$requestFile=requestFile

new Vue({
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$bus=this //安装全局事件总线
  },
  router:router
}).$mount('#app')
